Skip to main content
Version: 8.4.10.4

FutureMarketSummary

V8 Message Definiton

These records represent live market summary snapshots for each active futures markets.

METADATA

AttributeValue
Topic2580-market-data-futures
MLink TokenFutSummaryData
ProductSRLive
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
fkey_atenum - AssetTypePRI'None'
fkey_tsenum - TickerSrcPRI'None'
fkey_tkVARCHAR(12)PRI''
fkey_yrSMALLINT UNSIGNEDPRI0
fkey_mnTINYINT UNSIGNEDPRI0
fkey_dyTINYINT UNSIGNEDPRI0
tradeDateDATE'1900-01-01'
opnPriceDOUBLE0first print price of the day during regular market hours
mrkPriceDOUBLE0last print handled during regular market hours
clsPriceDOUBLE0official exchange closing price
minPriceDOUBLE0minimum print price within market hours
maxPriceDOUBLE0maximum print price within market hours
openIntINT0open interest
bidCountINT0num prints quotebid
bidVolumeINT0volume when prtPrice quotebid
askCountINT0num prints quoteask
askVolumeINT0volume when prtPrice quoteask
midCountINT0num prints inside quotebid quoteask
midVolumeINT0volume inside quotebid quoteask
prtCountINT0number of distinct print reports
prtVolumeINT0total print volume all print types
lastPrtPriceDOUBLE0last print price
lastPrtDttmDATETIME(6)'1900-01-01 00:00:00.000000'last print time
expCountINT0number of updates included in exponential average
expWidthDOUBLE0exponential average market width 10 minute 12 life
expBidSizeFLOAT0exponential average bid size 10 minute 12 life
expAskSizeFLOAT0exponential average ask size 10 minute 12 life
timestampDATETIME(6)'1900-01-01 00:00:00.000000'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
fkey_tk1
fkey_yr2
fkey_mn3
fkey_dy4
fkey_at5
fkey_ts6

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRLive`.`MsgFutureMarketSummary` (
`fkey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`fkey_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`fkey_tk` VARCHAR(12) NOT NULL DEFAULT '',
`fkey_yr` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`fkey_mn` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`fkey_dy` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`tradeDate` DATE NOT NULL DEFAULT '1900-01-01',
`opnPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'first print price of the day during regular market hours',
`mrkPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'last print handled during regular market hours',
`clsPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'official exchange closing price',
`minPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'minimum print price within market hours',
`maxPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'maximum print price within market hours',
`openInt` INT NOT NULL DEFAULT 0 COMMENT 'open interest',
`bidCount` INT NOT NULL DEFAULT 0 COMMENT 'num prints <= quote.bid',
`bidVolume` INT NOT NULL DEFAULT 0 COMMENT 'volume when prtPrice <= quote.bid',
`askCount` INT NOT NULL DEFAULT 0 COMMENT 'num prints >= quote.ask',
`askVolume` INT NOT NULL DEFAULT 0 COMMENT 'volume when prtPrice >= quote.ask',
`midCount` INT NOT NULL DEFAULT 0 COMMENT 'num prints inside quote.bid / quote.ask',
`midVolume` INT NOT NULL DEFAULT 0 COMMENT 'volume inside quote.bid / quote.ask',
`prtCount` INT NOT NULL DEFAULT 0 COMMENT 'number of distinct print reports',
`prtVolume` INT NOT NULL DEFAULT 0 COMMENT 'total print volume (all print types)',
`lastPrtPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'last print price',
`lastPrtDttm` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000' COMMENT 'last print time',
`expCount` INT NOT NULL DEFAULT 0 COMMENT 'number of updates included in exponential average',
`expWidth` DOUBLE NOT NULL DEFAULT 0 COMMENT 'exponential average market width (10 minute 1/2 life)',
`expBidSize` FLOAT NOT NULL DEFAULT 0 COMMENT 'exponential average bid size (10 minute 1/2 life)',
`expAskSize` FLOAT NOT NULL DEFAULT 0 COMMENT 'exponential average ask size (10 minute 1/2 life)',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
PRIMARY KEY USING HASH (`fkey_tk`,`fkey_yr`,`fkey_mn`,`fkey_dy`,`fkey_at`,`fkey_ts`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='These records represent live market summary snapshots for each active futures markets.';

SELECT TABLE EXAMPLE QUERY

SELECT
`fkey_at`,
`fkey_ts`,
`fkey_tk`,
`fkey_yr`,
`fkey_mn`,
`fkey_dy`,
`tradeDate`,
`opnPrice`,
`mrkPrice`,
`clsPrice`,
`minPrice`,
`maxPrice`,
`openInt`,
`bidCount`,
`bidVolume`,
`askCount`,
`askVolume`,
`midCount`,
`midVolume`,
`prtCount`,
`prtVolume`,
`lastPrtPrice`,
`lastPrtDttm`,
`expCount`,
`expWidth`,
`expBidSize`,
`expAskSize`,
`timestamp`
FROM `SRLive`.`MsgFutureMarketSummary`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`fkey_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`fkey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`fkey_tk` = 'Example_fkey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`fkey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`fkey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`fkey_dy` = 1;

Doc Columns Query

SELECT * FROM SRLive.doccolumns WHERE TABLE_NAME='FutureMarketSummary' ORDER BY ordinal_position ASC;